package cate.common.table.activity.converthero.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.converthero.row.ConvertHeroBaseRow;

import java.util.List;
import java.util.stream.Collectors;

public class ConvertHeroBaseSheet extends ESheet<ConvertHeroBaseRow> {
    @Override
    public String getSheetName() {
        return "英雄兑换";
    }

    public List<ConvertHeroBaseRow> getListByConfig(final int configId) {
        return getList().stream().filter(row -> row.configId == configId).collect(Collectors.toList());
    }
}
